                                                                     
                                             
/*
 * VendorItemBO.java
 *
 * Created on March 28, 2007, 8:19 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.samlam;

/**
 * vendor item
 * @author Brian Barrett
 */
public class VendorItem {
    
    private String viguid;
    private boolean dirty = false;
    private boolean alreadyInDB = false;
    private double cost;
    private Vendor vendor;
    private Conceptual conceptualprod;
    
    /**
     * Creates a new instance of VendorItemBO
     * @param id id
     */
    public VendorItem(String id) {
        this.viguid = id;
    }

    /**
     * get vendor guid
     * @return vendor guid
     */
    public String getViguid() {
        return viguid;
    }

    /**
     * is dirty
     * @return is dirty
     */
    public boolean isDirty() {
        return dirty;
    }

    /**
     * set dirty
     * @param dirty dirty
     */
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }

    /**
     * is already in DB
     * @return is in db
     */
    public boolean isAlreadyInDB() {
        return alreadyInDB;
    }

    /**
     * set already in db
     * @param alreadyInDB already in db
     */
    public void setAlreadyInDB(boolean alreadyInDB) {
        this.alreadyInDB = alreadyInDB;
    }

    /**
     * get vendor
     * @return get vendor
     */
    public Vendor getVendor() {
        return vendor;
    }

    /**
     * set vendor
     * @param vendor vendor
     */
    public void setVendor(Vendor vendor) {
        this.vendor = vendor;
        this.dirty = true;
    }

    /**
     * get conceptual product
     * @return conceptual product
     */
    public Conceptual getConceptualprod() {
        return conceptualprod;
    }

    /**
     * set conceptual product
     * @param conceptualprod conceptual product
     */
    public void setConceptualprod(Conceptual conceptualprod) {
        this.conceptualprod = conceptualprod;
        this.dirty = true;
    }

    /**
     * get cost
     * @return get cost
     */
    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }
    
}
